function fn() {
  console.log(1123)
}
Promise.resolve().then(fn)
